#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "component/window.h"
#include "statusbar/StatusBar.h"
#include "title/TitleBar.h"

#include <QMainWindow>
#include <QSplitter>
#include <QDockWidget>

class MainWindow : public Window {
    Q_OBJECT

  public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

  private slots:
    void onButtonMinClicked();
    void onButtonRestoreClicked();
    void onButtonMaxClicked();
    void onButtonCloseClicked();

  private:
    void initTitleBar();
    void initStatusBar();
    void initCenterContext();
    void initDockWidget();        // 初始化停靠窗口


  private:
    TitleBar *titleBar;
    StatusBar *statusBar;

    QSplitter *splitter;          // 窗口中心内容区分割

    // QDockWidget *menuListDockWidget;



};
#endif // MAINWINDOW_H
